/**
 * @Author DengJia
 * @Date 2021/8/12 22:57
 * @Description
 */

public class ConstructorDemo {
    public ConstructorDemo() {
        System.out.println("一条消息");
    }

    public ConstructorDemo(String msg) {
        System.out.println("一条消息 + " + msg);
    }

    public ConstructorDemo(Integer i1, String s1) {
        System.out.println(i1 + " + " + s1);
    }

    public ConstructorDemo(String s2, Integer i2) {
        System.out.println(s2 + " + " + i2);
    }

    public static void main(String[] args) {
        new ConstructorDemo();
        new ConstructorDemo("哈哈");

        new ConstructorDemo(100, "优秀");
        new ConstructorDemo("及格", 60);
    }
}
